home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************\
-
- File: demo help.c
-
- Purpose: This module handles displaying the different help windows.
-
-
- MSG Demo -- graphic effects demonstration program
- Copyright (C) 1992-3 Mark Pilgrim & Dave Blumenthal
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program in a file named "GNU General Public License".
- If not, write to the Free Software Foundation, 675 Mass Ave,
- Cambridge, MA 02139, USA.
-
- \**********************************************************************/
-
- #include "demo help.h"
-
- void DrawHelp(int whichHelp)
- {
- GrafPtr curPort;
-
- GetPort(&curPort);
- EraseRect(&(curPort->portRect));
-
- MoveTo(10,15);
- TextFont(3);
- TextSize(9);
- switch (whichHelp)
- {
- case 0:
- DrawHelpUse();
- break;
- case 1:
- DrawHelpCopyright();
- break;
- case 2:
- DrawHelpContact();
- break;
- case 3:
- DrawHelpFAQ();
- break;
- }
- }
-
- void DrawHelpUse(void)
- {
- DrawString("\pMSG Demo is just a collection of graphic effects, neat ways to");
- MoveTo(10,27);
- DrawString("\pput a picture into a window. Most of these were originally");
- MoveTo(10,39);
- DrawString("\pprogrammed on an Apple //e in the mid 1980’s, and ported to");
- MoveTo(10,51);
- DrawString("\pthe Macintosh almost ten years later. (What a long, strange");
- MoveTo(10,63);
- DrawString("\ptrip it’s been...)");
- MoveTo(10,87);
- DrawString("\pTo see an effect, simply select it from one of the three");
- MoveTo(10,99);
- DrawString("\peffects menus, “Originals,” “Additions,” or “Scrolls.”");
- MoveTo(10,111);
- DrawString("\p(These are, in fact, semi-organized. “Originals” are the");
- MoveTo(10,123);
- DrawString("\pthirteen written in early 1992. The others were written");
- MoveTo(10,135);
- DrawString("\pthroughout 1993.) To see the same effect again, select");
- MoveTo(10,147);
- DrawString("\p“Repeat effect” from the “Fluff” menu.");
- MoveTo(10,171);
- DrawString("\pTo crash the machine with the system error of your choice,");
- MoveTo(10,183);
- DrawString("\ptry the “Crash” submenu (in the “Fluff” menu). Be warned:");
- MoveTo(10,195);
- DrawString("\pthis may cause loss of data in some situations.");
- }
-
- void DrawHelpCopyright(void)
- {
- DrawString("\pMSG Demo is copyright ©1993 Mark Pilgrim. This program is");
- MoveTo(10,27);
- DrawString("\pcompletely free; you can redistribute it and/or modify it");
- MoveTo(10,39);
- DrawString("\punder the terms of the GNU General Public License as published");
- MoveTo(10,51);
- DrawString("\pby the Free Software Foundation; either version 2 of the");
- MoveTo(10,63);
- DrawString("\pLicense, or (at your option) any later version.");
- MoveTo(10,87);
- DrawString("\pMSG Demo is distributed in the hope that it will be useful,");
- MoveTo(10,99);
- DrawString("\pbut WITHOUT ANY WARRANTY; without even the implied");
- MoveTo(10,111);
- DrawString("\pwarranty of MERCHANTABILITY or FITNESS FOR A");
- MoveTo(10,123);
- DrawString("\pPARTICULAR PURPOSE. See the GNU General Public License");
- MoveTo(10,135);
- DrawString("\pfor more details.");
- MoveTo(10,159);
- DrawString("\pYou should have received a copy of the GNU General Public");
- MoveTo(10,171);
- DrawString("\pLicense along with this program; if not, write to the Free");
- MoveTo(10,183);
- DrawString("\pSoftware Foundation, Inc., 675 Mass Ave, Cambridge, MA,");
- MoveTo(10,195);
- DrawString("\p02139, USA.");
- }
-
- void DrawHelpContact(void)
- {
- DrawString("\pAll Macintosh users should feel free to contact me for any of");
- MoveTo(10,27);
- DrawString("\pthe following reasons: reporting bugs or suggestions about");
- MoveTo(10,39);
- DrawString("\pMSG Demo or any other program I’ve written; discussing the");
- MoveTo(10,51);
- DrawString("\ppossibility of collaborating on future programming projects;");
- MoveTo(10,63);
- DrawString("\pdiscussing the virus I wrote and released (MBDF-A); discussing");
- MoveTo(10,75);
- DrawString("\pways to keep potential virus-writers from becoming actual");
- MoveTo(10,87);
- DrawString("\pvirus-writers; discussing techniques for really good backrubs.");
- MoveTo(10,111);
- DrawString("\pMy e-mail address is f8dy@netaxs.com. To send me e-mail");
- MoveTo(10,123);
- DrawString("\panonymously, mail to an48382@anon.penet.fi. (Due to the");
- MoveTo(10,135);
- DrawString("\pdouble-blind system, you will be allocated an anonymous I.D.");
- MoveTo(10,147);
- DrawString("\pwhich will keep your identity hidden.) To send me encrypted");
- MoveTo(10,159);
- DrawString("\pmail, e-mail me requesting my PGP 2.2 public key. If you do");
- MoveTo(10,171);
- DrawString("\pnot have e-mail access, my home address is 1130 Radnor Hill");
- MoveTo(10,183);
- DrawString("\pRoad, Wayne PA, 19087-2203, USA. Obviously, it will take");
- MoveTo(10,195);
- DrawString("\pme much longer to reply to snail-mail; use it as a last resort.");
- }
-
- void DrawHelpFAQ(void)
- {
- MoveTo(5,15);
- TextFace(bold);
- DrawString("\pWhy is my copy of MSG Demo registered to Bob?");
- MoveTo(10,27);
- TextFace(0);
- DrawString("\pThat’s the default name the program uses if you don’t enter");
- MoveTo(10,39);
- DrawString("\pyour name in the personalization dialog box.");
- MoveTo(5,63);
- TextFace(bold);
- DrawString("\pHow do I re-personalize my copy of MSG Demo?");
- MoveTo(10,75);
- TextFace(0);
- DrawString("\pDuplicate it or copy it to another disk, then run the copy.");
- MoveTo(10, 87);
- DrawString("\p(Or just trash “MSG Demo prefs” in your system folder.)");
- MoveTo(5,111);
- TextFace(bold);
- DrawString("\pWhy all the fuss over the MBDF-A virus?");
- MoveTo(10,123);
- TextFace(0);
- DrawString("\pI’m trying to put back into the Macintosh community as much");
- MoveTo(10,135);
- DrawString("\pas I took out of it. When I reach the break-even point, I’ll");
- MoveTo(10,147);
- DrawString("\plet you know.");
- MoveTo(5,171);
- TextFace(bold);
- DrawString("\pHow does MSG enhance the flavor of my Macintosh?");
- MoveTo(10,183);
- TextFace(0);
- DrawString("\pWe try to think of things that no other Macintosh program");
- MoveTo(10,195);
- DrawString("\pdoes, and then we do them. Any suggestions?");
- }
-